package com.qf.service.impl;

import com.qf.entity.Subject;
import com.qf.mapper.SubjectMapper;
import com.qf.service.SubjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SubjectServiceImpl implements SubjectService {
    @Autowired
    private SubjectMapper subjectMapper;
    @Override
    public List<Subject> findSubjectsByStuId(Integer stuId) {
        return subjectMapper.findSubjectsByStuId(stuId);
    }

    @Override
    public List<Subject> findSubjectsWithTeachersByStuId(Integer stuId) {
        return subjectMapper.findSubjectsWithTeachersByStuId(stuId);
    }
}
